{%extends "base.html"%}

{%block title%}
        <title>Administracion - Listado de Alumnos</title>
{%endblock title%}


{%block maincontent%}
{%load pagination_tags%}
{%autopaginate obj_list 40%}
<h2>Listado de Alumnos</h2>
<br>

<a href="{% url admon.views.home%}" class="btn btn-inverse"><i class="icon-arrow-left icon-white"></i> Regresar</a>

<a href="{% url admon.views.alumno_create%}" class="btn btn-success pull-right"><i class="icon-plus icon-white"></i> Agregar Alumno</a>
<br>
<br>
{%paginate%}
<table class="table table-striped table-bordered table-condensed">

    <thead>
        <tr>
            <th>No. de Control</th>
            <th>Carrera</th>
            <th>A. Paterno</th>
            <th>A. Materno</th>
            <th>Nombre</th>
            <th>Editar</th>
            <th>Eliminar</th>
        </tr>    
    </thead>

    <tbody>
        {%for obj in obj_list%}
        <tr>
            <td>{{obj.num_control}}</td>
            <td>{{obj.carrera.nombre}}</td>
            <td>{{obj.apellido_paterno}}</td>
            <td>{{obj.apellido_materno}}</td>
            <td>{{obj.nombre}}</td>
            <td><a href="{% url admon.views.alumno_modify obj.pk%}"><i class="icon-pencil"></i> Editar</a></td>
            <td><a href="{% url admon.views.alumno_warning obj.pk %}"><i class="icon-remove"></i> Eliminar</a></td>
        </tr>
        {%endfor%}
 
    </tbody>

</table>

{%paginate%}
{%endblock%}
